package com.hualan.service.impl;

import com.hualan.domain.Teacher;
import com.hualan.mapper.TeacherMapper;
import com.hualan.service.TeacherService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class TeacherImpl implements TeacherService {
    @Autowired
    public TeacherMapper teacherMapper;
    @Override
    public List<Teacher> selectAllTeacher() {
        return teacherMapper.selectAllTeacher();
    }

    @Override
    public int insertTeacher(Teacher teacher) {
        return teacherMapper.insertSelective(teacher);
    }
}
